using System;

namespace Jage
{
#if WINDOWS || XBOX
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            switch (GetGameLaunchMode(args))
            {
                case GameLaunchMode.Game:
                    using (var game = new Game1())
                    {
                        game.Run();
                    }
                    break;
                case GameLaunchMode.TestAnimation:
                    break;
            }
        }

        private static GameLaunchMode GetGameLaunchMode(string[] args)
        {
            if (args.Length == 1)
            {
                if (args[0].ToLower() == "-animation")
                {
                    return GameLaunchMode.TestAnimation;
                }
            }
            return GameLaunchMode.Game;
        }
    }
#endif
}

